package com.apimarket.config;

import org.springframework.context.annotation.Configuration;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;


//@Configuration
//@EnableSwagger2
public class SwaggerConfig {

    //@Value("${swagger.enabled}")
    //private boolean enabled;
    //
    //@Value("${swagger.terms-of-service-url}")
    //private String serviceUrl;
    //
    //@Bean
    //public Docket createRestApi() {
    //    return new Docket(DocumentationType.SWAGGER_2)
    //            .enable(enabled)
    //            .apiInfo(apiInfo())
    //            .select()
    //            .apis(RequestHandlerSelectors.basePackage("com.somorn.cld"))
    //            .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
    //            .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
    //            .paths(PathSelectors.any())
    //            .build();
    //}
    //
    //private ApiInfo apiInfo() {
    //    return new ApiInfoBuilder()
    //            .title("数据治理")
    //            .description("admin")
    //            .termsOfServiceUrl(serviceUrl)
    //            .version("1.0.0.SNAPSHOT")
    //            .contact(new Contact("admin","",""))
    //            .build();
    //}
}
